using System.ComponentModel.DataAnnotations;

namespace Models
{
    public class ForgotPasswordModel
    {
        [Required]
        [EmailAddress]
        public required string Email { get; set; }
    }

    public class ResetPasswordModel
    {
        [Required]
        [EmailAddress]
        public required string Email { get; set; }// 电子邮件

        [Required]
        public required string Token { get; set; }// 令牌

        [Required]
        [StringLength(100, MinimumLength = 6)]
        public required string Password { get; set; }// 密码

        [Compare("Password")]
        public required string ConfirmPassword { get; set; }// 确认密码
    }

    public class RefreshTokenRequest
    {
        [Required]
        public required string RefreshToken { get; set; }// 刷新令牌
    }
}